package main

import (
    "fmt"
    "github.com/prometheus/client_golang/prometheus/promhttp"
    _ "megacli_exporter/collector"
    "net/http"
)

func main() {
    http.Handle("/metrics", promhttp.Handler())
    if err := http.ListenAndServe(":9009", nil); err != nil {
        fmt.Printf("Error occur when start server %v", err)
    }
}
